<%@page contentType="text/html;charset=utf-8" %>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <link href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/login.css">
    <script src="${pageContext.request.contextPath}/static/js/login.js"></script>
</head>
<body>
<div class="main">
    <h1>欢迎使用图书管理系统</h1>
    <h1>Login</h1>
    <form class="form-horizontal" onsubmit="return checkForm()"
          action="${pageContext.request.contextPath}/door/login" method="post">
        <div class="loin">
            <div class="first">
                <%--                <span class="fa fa-github-alt"></span>--%>
                <span class="glyphicon glyphicon-envelope"></span>
                <input type="email" placeholder="EMAIL" name="email" required id="UserName">
            </div>
            <div class="first">
                <span class="fa fa-search"></span>
                <input type="password" placeholder="PASSWORD" name="password" required id="PassWord">
            </div>
            <div id="identifyDiv" class="form-group has-feedback">
                <label class="col-sm-2 control-label identify" for="code_input">验证码</label>
                <div class="col-sm-4 identify">
                    <input type="text" id="code_input" value="" placeholder="请输入验证码" class="form-control"/>
                </div>
                <div class="col-sm-4" id="v_container"></div>
            </div>
        </div>
        <div class="last">
            <input type="checkbox" style="border: 1px solid purple" name="loginFree" value="true">
            <p id="fst1">十天免登录</p>
            <%--            到时候可以考虑忘记密码的功能。--%>
            <a href="javascript:whatYouCan();" style="font-size: 15px;"><b>忘记密码?</b></a>
        </div>
        <div class="third">
            <button type="submit" class="btn btn-info" onclick="validate()">登&nbsp;&nbsp;&nbsp;录</button>
        </div>
        <div class="third">
            <button class="btn btn-info"
                    onclick="window.document.location='${pageContext.request.contextPath}/user/toSignupPaper'">注&nbsp;&nbsp;&nbsp;册
            </button>
        </div>
    </form>
    <footer class="navbar-fixed-bottom text-center">
        &copy; 2022·Z²L²Y
    </footer>
</div>
</body>
<script>
    var verifyCode = new GVerify("v_container");
</script>
</html>